'use client'

import {
  CodeBracketIcon,
  CpuChipIcon,
  DevicePhoneMobileIcon,
  GlobeAltIcon,
  LockClosedIcon,
  RocketLaunchIcon,
} from '@heroicons/react/24/outline'

const features = [
  {
    name: 'Next.js 14',
    description: '使用最新的 App Router 和 React Server Components，提供卓越的性能和开发体验。',
    icon: RocketLaunchIcon,
  },
  {
    name: 'TypeScript',
    description: '完整的类型安全支持，减少运行时错误，提高代码质量和开发效率。',
    icon: CodeBracketIcon,
  },
  {
    name: 'Tailwind CSS',
    description: '实用优先的 CSS 框架，快速构建美观且响应式的用户界面。',
    icon: CpuChipIcon,
  },
  {
    name: '响应式设计',
    description: '完美适配桌面、平板和移动设备，提供一致的用户体验。',
    icon: DevicePhoneMobileIcon,
  },
  {
    name: 'SEO 优化',
    description: '内置 SEO 优化功能，确保您的应用在搜索引擎中获得良好排名。',
    icon: GlobeAltIcon,
  },
  {
    name: '安全可靠',
    description: '遵循安全最佳实践，保护用户数据和应用程序安全。',
    icon: LockClosedIcon,
  },
]

export function Features() {
  return (
    <div className="py-24 sm:py-32" id="features">
      <div className="mx-auto max-w-7xl px-6 lg:px-8">
        <div className="mx-auto max-w-2xl lg:text-center">
          <h2 className="text-base font-semibold leading-7 text-primary-600">功能特性</h2>
          <p className="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
            一切您需要的现代化功能
          </p>
          <p className="mt-6 text-lg leading-8 text-gray-600">
            我们的模板包含了构建现代化 Web 应用所需的所有核心功能，
            让您可以专注于业务逻辑而非基础设施。
          </p>
        </div>
        <div className="mx-auto mt-16 max-w-2xl sm:mt-20 lg:mt-24 lg:max-w-none">
          <dl className="grid max-w-xl grid-cols-1 gap-x-8 gap-y-16 lg:max-w-none lg:grid-cols-3">
            {features.map((feature) => (
              <div key={feature.name} className="flex flex-col">
                <dt className="flex items-center gap-x-3 text-base font-semibold leading-7 text-gray-900">
                  <feature.icon className="h-5 w-5 flex-none text-primary-600" aria-hidden="true" />
                  {feature.name}
                </dt>
                <dd className="mt-4 flex flex-auto flex-col text-base leading-7 text-gray-600">
                  <p className="flex-auto">{feature.description}</p>
                </dd>
              </div>
            ))}
          </dl>
        </div>
      </div>
    </div>
  )
} 